package com.business.core.wyc.dao.base;

import java.io.Serializable;
import java.util.List;

public interface CommonDao<T, PK extends Serializable>
{
	public T save(T transientInstance);

	public T saveHasReturn(T transientInstance);

	public T merge(T persistentInstance);

	public void delete(T persistentInstance);

	public void delById(PK id);

	public void deleteById(PK id);

	public void delByIds(PK[] ids);

	public T findById(PK id);

	public List<T> findAll();

	public List<T> findAll(int maxResults);
}
